﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace P
{
    /// <summary>
    /// tcp文件传输消息
    /// </summary>
    public class ImageFileMsg : Element 
    {

        /// <summary>
        /// 构造
        /// </summary>
        public ImageFileMsg()
        {

        }

        /// <summary>
        /// 构造
        /// </summary>
        public ImageFileMsg(string md5, string extension)
        {
            MD5 = md5;
            Extension = extension;
        }

        /// <summary>
        /// 构造
        /// </summary>
        public ImageFileMsg(string md5)
        {
            MD5 = md5;
        }

        /// <summary>
        /// 文件MD5值
        /// </summary>
        public string MD5 { get; set; }
        /// <summary>
        /// 文件扩展名
        /// </summary>
        public string Extension { get; set; }
        /// <summary>
        /// 传输文件的大小
        /// </summary>
        public long Length { get; set; }
    }
}
